package com.billing.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.DeptBeanMapper;
import com.billing.model.entity.TDept;
import com.billing.service.DeptService;

@Service
public class DeptServiceImpl implements DeptService {

	@Resource
	private DeptBeanMapper deptBeanMapper;
	
	
	public List<TDept> getTDeptlist() {
		return deptBeanMapper.getTDeptlist();
	}


	@Override
	public int getDeptNum(int id, String name, int status) {
		return deptBeanMapper.getDeptNum(id,name,status);
	}


	@Override
	public List<Map<String, Object>> getDeptById(int id, String name, int status, int pageSize, int currentPage) {
		return deptBeanMapper.getDeptById(id,name,status,pageSize,currentPage);
	}


	@Override
	public int insert(TDept dept) {
		return deptBeanMapper.insert(dept);
	}


	@Override
	public List<TDept> getAllDept(String id) {
		return deptBeanMapper.getAllDept(id);
	}
	
}
